package ReflectDemo;

public class Student {

	private String name;
	private int age;
	private int classNo;
	public String sex;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	public int getClassNo() {
		return classNo;
	}
	public void setClassNo(int classNo) {
		this.classNo = classNo;
	}
	
	public Student() {
		super();
	}
	
	private Student(String name) {
		super();
		this.name = name;
	}
	
	public Student(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}
	
	public Student(String name, int age, int classNo) {
		super();
		this.name = name;
		this.age = age;
		this.classNo = classNo;
	}
	
	public String getSex() {
		return sex;
	}
	
	private void privateMethod(){
		System.out.println("It is privateMethod ...");
	}
	
	private void privateMethod2(String note){
		System.out.println("It is privateMethod2 ..."+note);
	}
	
	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + ", classNo=" + classNo + "]";
	}
}
